package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupMemberDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupMemberVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupMemberDto2VoConverter {
    GroupMemberDto2VoConverter INSTANCE = Mappers.getMapper(GroupMemberDto2VoConverter.class);

    GroupMemberDto vo2dto(GroupMemberVo vo);

    List<GroupMemberDto> vo2dto(List<GroupMemberVo> voList);

    @InheritInverseConfiguration
    GroupMemberVo dto2vo(GroupMemberDto dto);
    @InheritInverseConfiguration
    List<GroupMemberVo> dto2vo(List<GroupMemberDto> dtoList);
}
